{extend name="default/shops/base" /}
{block name="title"}商品销售排行 - 卖家中心{__block__}{/block}

{block name="content"}
<div class="wst-body"> 
<div class="wst-shop-head"><span>商品销售排行</span></div>
<div class='wst-shop-tbar'>
    日期：<input type='text' class="laydate-icon j-ipt" id='startDate' onclick="laydate()" value='{$startDate}'/>至
    <input type='text' class="laydate-icon j-ipt" id='endDate' onclick="laydate()" value='{$endDate}'/>
    <a class="s-btn" onclick="loadStat()">查询</a>
</div>
<div class='wst-shop-content'>
    <table class='wst-list' style="font-size:13px;">
           <thead>
             <tr>
               <th width='20'>&nbsp;&nbsp;</th>
               <th width='100' colspan="2">商品</th>
               <th width='130'>商品编号</th>
               <th width='100'>销量</th>
             </tr>
           </thead>
           <tbody id='list-box'></tbody>
           <script id="top-sale-tblist" type="text/html">
    		  {{# for(var i = 0; i < d.length; i++){ }}
              <tr>
                <td>{{(i+1)}}</td>
                <td>
                <div class='goods-img'>
                <a target='_blank' href='{{WST.U("home/goods/detail","goodsId="+d[i].goodsId)}}'>
                <img class='j-lazyGoodsImg'  data-original='__RESOURCE_PATH__/{{d[i].goodsImg}}'/>
                </a>
                </div></td>
                <td>{{ d[i].goodsName }}</td>
    			<td>{{ d[i].goodsSn }}</td>
                <td>{{ d[i].goodsNum}}</td>
                </td>
              </tr>
    		  {{# } }}
    		  </script>
        </table>
</div>
{/block}  
{block name="js"}
<script src="__STATIC__/plugins/layer/laydate.js"></script>
<script type='text/javascript' src='__STYLE__/shops/reports/top_sale_goods.js?v={$v}'></script>
{/block}